import { createApp } from "vue";
//导入elememt-plus
import ElementPlus from 'element-plus'
//导入elememt-plus样式
import 'element-plus/theme-chalk/index.css'
//导入normalize.css
import 'normalize.css'
import './assets/css/index.less'

//导入封装接口请求方法
import hyRequest from './service'

import {setupStore} from './store'

import App from "./App.vue";


import router from "./router";
import store from "./store";

//导入定义的全局属性
import { globalRegister } from "./global";

const app = createApp(App);
//定义全局属性
// app.config.globalProperties.$filters = {
//   formatTime(value: string){
//     return '2022-02-20'
//   }
// }
app.use(globalRegister)

app.use(store)
setupStore()
app.use(router)
app.use(ElementPlus)



app.mount("#app")

